﻿using UnityEngine;
using System.Collections;

namespace MrPP.SocketSystem
{
	public abstract class Request {

		public abstract short getCommand();
		
		public virtual void serialize(DataStream writer)
		{
			writer.WriteSInt16(getCommand());
		}

		public virtual void deserialize(DataStream reader)
		{
			//no need to implement as this is a request
		}
		/*
		public void Send(){
			SocketManager.Instance.sendMessage(this);
		}*/
	}
}